import request from '@/utils/request.js'

// 确认订单
export function getPayment(data) {
  return request({
    url: '/api/v1.shop/getGoodsInfo',
    method: 'POST',
    data
  })
}

// 创建订单
export function createOrder(data) {
  return request({
    url: '/api/v1.order/createOrder',
    method: 'POST',
    data
  })
}

// 余额支付
export function payMoney(data) {
  return request({
    url: '/api/v1.pay/payMoney',
    method: 'POST',
    data
  })
}

// 支付宝支付
export function payAlipay(data) {
  return request({
    url: '/api/v1.pay/payAlipay',
    method: 'POST',
    data
  })
}

// 微信支付
export function payWechat(data) {
  return request({
    url: '/api/v1.pay/payWechat',
    method: 'POST',
    data
  })
}
